package com.aspyn.tetris;

import android.graphics.Point;

public class SShape extends Shape {

	private Point[] occupiedPoints;

	public void createShapeWithTopCornerAtPt(int x, int y, GridManager gM) {
		occupiedPoints = new Point[4];

		occupiedPoints[0] = new Point(x+1,y);
		occupiedPoints[1] = new Point(x,y+1);
		occupiedPoints[2] = new Point(x,y+2);
		occupiedPoints[3] = new Point(x+1,y+1);

		for (int i = 0; i<4; i++) {
			gM.setGridPosOccupied(occupiedPoints[i].x, occupiedPoints[i].y, ShapeType.S);
		}
	}
	public Point[] getOccupiedPoints() {
		return occupiedPoints;
	}
	public void setOccupiedPoints(Point[] occPts) {
		for (int i = 0; i<4; i++) {
			occupiedPoints[i] = occPts[i];
		}
	}
}
